package org.smr.ministore.service;

import org.smr.ministore.entities.Brand;
import org.smr.ministore.entities.BrandOrgan;
import org.blade.service.base.BaseService;
import org.blade.service.base.BaseBatchService;
import org.blade.service.base.PaginationQueryService;
import org.smr.ministore.entities.vo.BrandOrganQuery;

import java.util.List;

/**
 * @author blade
 *
 */
public interface BrandOrganService extends BaseService<Long, BrandOrgan>,
                                        BaseBatchService<Long, BrandOrgan>,
                                        PaginationQueryService<Long, BrandOrgan> {

    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    int deleteByIdLogical(Long id);

    /**
     * 根据业务条件查询
     * @param brandOrgan 业务条件
     * @return BrandOrgan
     *
     */
    BrandOrgan queryBy(BrandOrgan brandOrgan);

    /**
     * 查询已经指派组织
     *
     * @param brandOrganQuery brandOrganQuery
     * @return List<GoodsTypeOrgan>
     */
    List<BrandOrgan> queryAlreadyAssignedOrgans(BrandOrganQuery brandOrganQuery);
}
